<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="执行DN/CN重启或主备切换等操作，导致日志备份失败">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="TPOPS_GaussDB_00063.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="TPOPS_GaussDB_00076">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>执行DN/CN重启或主备切换等操作，导致日志备份失败</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="TPOPS_GaussDB_00076"></a><a name="TPOPS_GaussDB_00076"></a>

<h1 class="topictitle1">执行DN/CN重启或主备切换等操作，导致日志备份失败</h1>
<div><div class="section"><h4 class="sectiontitle">现象描述</h4><p>日志备份过程中，执行了DN/CN重启或主备切换等操作，日志备份失败。</p>
</div>
<div class="section"><h4 class="sectiontitle">可能原因</h4><p>DN/CN重启或主备切换等操作导致xlog不完整，日志备份失败。</p>
</div>
<div class="section"><h4 class="sectiontitle">处理步骤</h4><ol><li id="TPOPS_GaussDB_00076__li10777153211159"><span>登录客户端所在的主机。</span></li><li id="TPOPS_GaussDB_00076__li111747487157"><span>执行<strong id="TPOPS_GaussDB_00076__b1792217164163">cd <em id="TPOPS_GaussDB_00076__i220810187432">/opt/</em>DataBackup/ProtectClient/ProtectClient-E/slog/Plugins/GeneralDBPlugin</strong>命令进入客户端所在的主机的日志目录（本步骤命令以客户端安装在“/opt”目录下为例，请按照实际客户端安装目录进行修改）。</span></li><li id="TPOPS_GaussDB_00076__li191194761616"><a name="TPOPS_GaussDB_00076__li191194761616"></a><a name="li191194761616"></a><span>执行以下命令搜索关键报错信息。</span><p><pre class="screen">grep -nr "GS-53429 : The recovery time is invalidxlog has been archived"</pre>
</p></li><li><span>如果<a href="#TPOPS_GaussDB_00076__li191194761616">3</a>能搜索到报错信息，表示xlog不完整，需要重新进行一次全量备份。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="TPOPS_GaussDB_00063.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>